Skip to content

更新退款审批结果

商户可通过调用此接口,更新“申请退款”单据的退款审批结果。

请求参数类型描述
complaint_idstring投诉单号
jsonobject声明请求的JSON数据结构
actionstring审批动作
REJECT | APPROVE 枚举值之一
launch_refund_dayinteger预计发起退款时间
reject_reasonstring拒绝退款原因
reject_media_liststring[]如果有拒绝的图片举证,可以提供 最多上传4张图片, 传入调用“商户上传反馈图片”接口返回的media_id,最多上传4张图片凭证
remarkstring备注
php
$instance->v3->merchantService->complaintsV2->_complaint_id_->updateRefundProgress->postAsync([
  'complaint_id' => '200201820200101080076610000',
  'json' => [
    'action' => 'REJECT',
    'launch_refund_day' => 3,
    'reject_reason' => '拒绝退款',
    'reject_media_list' => ['MediaId'],
    'remark' => '已处理完成',
  ],
])
->then(static function(\Psr\Http\Message\ResponseInterface $response) {
  print_r($response->getStatusCode() === 204);
})
->wait();
php
$instance->chain('v3/merchant-service/complaints-v2/{complaint_id}/update-refund-progress')->postAsync([
  'complaint_id' => '200201820200101080076610000',
  'json' => [
    'action' => 'REJECT',
    'launch_refund_day' => 3,
    'reject_reason' => '拒绝退款',
    'reject_media_list' => ['MediaId'],
    'remark' => '已处理完成',
  ],
])
->then(static function(\Psr\Http\Message\ResponseInterface $response) {
  print_r($response->getStatusCode() === 204);
})
->wait();
php
$instance['v3/merchant-service/complaints-v2/{complaint_id}/update-refund-progress']->postAsync([
  'complaint_id' => '200201820200101080076610000',
  'json' => [
    'action' => 'REJECT',
    'launch_refund_day' => 3,
    'reject_reason' => '拒绝退款',
    'reject_media_list' => ['MediaId'],
    'remark' => '已处理完成',
  ],
])
->then(static function(\Psr\Http\Message\ResponseInterface $response) {
  print_r($response->getStatusCode() === 204);
})
->wait();
php
$response = $instance->v3->merchantService->complaintsV2->_complaint_id_->updateRefundProgress->post([
  'complaint_id' => '200201820200101080076610000',
  'json' => [
    'action' => 'REJECT',
    'launch_refund_day' => 3,
    'reject_reason' => '拒绝退款',
    'reject_media_list' => ['MediaId'],
    'remark' => '已处理完成',
  ],
]);
print_r($response->getStatusCode() === 204);
php
$response = $instance->chain('v3/merchant-service/complaints-v2/{complaint_id}/update-refund-progress')->post([
  'complaint_id' => '200201820200101080076610000',
  'json' => [
    'action' => 'REJECT',
    'launch_refund_day' => 3,
    'reject_reason' => '拒绝退款',
    'reject_media_list' => ['MediaId'],
    'remark' => '已处理完成',
  ],
]);
print_r($response->getStatusCode() === 204);
php
$response = $instance['v3/merchant-service/complaints-v2/{complaint_id}/update-refund-progress']->post([
  'complaint_id' => '200201820200101080076610000',
  'json' => [
    'action' => 'REJECT',
    'launch_refund_day' => 3,
    'reject_reason' => '拒绝退款',
    'reject_media_list' => ['MediaId'],
    'remark' => '已处理完成',
  ],
]);
print_r($response->getStatusCode() === 204);
返回字典类型描述
空字符串(无返回内容)

参阅 官方文档 官方文档

Published on the GitHub by TheNorthMemory